package com.itcast.infohide.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itcast.infohide.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    User selectByAccount(@Param("account") String account);

    User selectByName(@Param("name") String name);

    int insertOne(User user);
}
